package com.wwy.arithmetic.suanfa;

import java.util.HashSet;
import java.util.Set;

/**
 * 数组中的重复元素
 */
public class ChongFuYuanSu {

    public static void main(String[] args) {

    }

    static boolean judge(int[] nums) {
        if (nums.length <= 1) {
            return false;
        }
        Set<Integer> set = new HashSet<>();
        for (int num : nums) {
            if (!set.add(num)) {
                return true;
            }
        }
        return false;
    }
}
